<template>
  <div class="stepBar">
    <div v-for="(item,index) in stepOptions" :key="index" class="stepBar_item" :class="index<step?'done':''">{{ index+1 }}.{{ item }}</div>
  </div>
</template>

<script>
export default {
  name: 'StepBar',
  props: {
    stepOptions: {
      type: Array,
      default() {
        return []
      }
    },
    step: {
      type: String,
      default() {
        return '1'
      }
    }
  },
  data() {
    return {
    }
  },
  methods: {
  }
}
</script>

<style lang="less" scoped>
</style>
